<?php
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
|这里是您可以为应用程序注册API路由的地方。这些
|路由由组中的RouteServiceProvider加载
|被分配了“api”中间件组。享受构建API的乐趣！
|
*/

//商城小程序开放接口
$api = app('Dingo\Api\Routing\Router');

$api->version('v1', function ($api) {
    $api -> group(['namespace' => 'App\Shop\Controllers', 'prefix' => 'shop'], function ($api) {
        $api->get('merchant/getMerchantSaleById', 'MerchantController@getMerchantSaleById');

        $api->get('merchant/getUserDepositNow', 'MerchantController@getUserDepositNow');

        $api->get('machine/getMachineList', 'MachineController@getMachineList');

        $api->get('machine/getMachineProfitList', 'MachineController@getMachineProfitList');

        $api->get('order/getOrderList', 'OrderController@getOrderList');

        $api->get('order/getOrderDetail', 'OrderController@getOrderDetail');
    });
});
